export interface CommonResultType<T> {
  code: string;
  data: T[];
  message: string;
  page: number;
  page_size: number;
  total: number;
}
export interface QueryItem {
  asset_package_code?: string; //资产编号
  asset_package_name?: string; //资产名称
  page: number; //页码
  page_size: number; //页数
  project_id?: string; //项目id
  update_time_end?: string; //结束时间
  update_time_start?: string; // 开始时间
}

export interface ListData {
  asset_cost_total: number; //	资产成本总计
  code: string; // 资产编号
  cost_status: string; // 入表状态
  id?: string; // 项目id
  name: string; // 项目名称
  rd_spending: number; // 研发支出
  related_projects_id: string[]; // 关联项目id
  related_projects_name: string[]; // 关联项目名称
  relation_credential_count: string; // 关联凭证数量
  ru_biao_total: number; // 可入表额度
  update_time: string; // 更新时间
  version: number; // 资产版本
}

export interface ConfirmGetItem {
  asset_package_id: string; // 资产id
  status: string; // 状态
}

export interface CostSuccessResultType<T> {
  code: string;
  data: T[];
  message: string;
}

export interface CostDetailItem<T> {
  actual_allocated_cost: string; //资产分摊金额
  asset_package_code: string; //资产编号
  asset_package_name: string; //资产名称
  asset_package_owner: string[]; //资产主体
  list_data: T[];
  ru_biao_total: string; //资产入表额度
}
export interface CostDetailListData {
  accounting_subject: string; //会计科目
  accounting_subject_code: string; //会计科目编号
  accounting_subject_detail: string;
  actual_allocated_cost: string;
  code: string;
  credential_code: string; //对应凭证编号
  id: string;
  name: string;
  ru_biao_status: number;
  version: number;
}

export interface DetailListData {
  asset_package_id: string | any; //	资产id
  cost_amount: number; //	实际分摊成本
  id: string; //	明细id
  ru_biao_status: number; //	入表状态
}

export interface SuccessResultType<T> {
  code: string;
  data: T;
  message: string;
}
